﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
        
    <script>
        var start = new Date(),
            counter = 0;
        setTimeout(function () {
            console.warn('Firing timeout after ' + (new Date() - start).toString() + ' ms');
        }, 500);

        while (new Date() - start < 1000) {
            counter++;
        }
             

    </script>
</body>
</html>
